//
//  NetCity.m
//  carcareIOS
//
//  Created by ileo on 16/4/13.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import "NetCity.h"
#import "AIUserInfo.h"

@implementation NetCity

+(NetCity *)provinces{
    return [__SELF request:@"/Oil/cities" withParams:@{@"level":@(1)} type:REQUEST_POST];
}

+(NetCity *)citysWithProvicePID:(NSInteger)pid{
    return [__SELF request:@"/Oil/cities" withParams:@{@"level":@(2), @"pid":@(pid)} type:REQUEST_POST];
}

-(NSDictionary *)requestCommonParams{
    if (![USERINFO.session isNotNil]) {
        return nil;
    }
    return @{@"userid":@(USERINFO.userID),@"session":USERINFO.session};
}



@end
